# 打印 1..20
for x in range(1, 21):
	print(x)

# 打印 1.. 1_000_000
# for x in range(1, 1_000_000):
# 	print(x)

#  计算 sum， min， max
digists = list(range(1, 1_000_001))
print(f'sum(1..1_000_000) = {sum(digists)}')
print(f'min(1..1_000_000) = {min(digists)}')
print(f'max(1..1_000_000) = {max(digists)}')

# 打印1..20的奇数
digists = list(range(1, 20, 2))
for x in digists:
	print(x)

# 3的倍数
digists = list(range(3, 31, 3))
for x in digists:
	print(x)

# 立方
cub = []
for x in range(1, 11):
	cub.append(x ** 3)
for x in cub:
	print(x)

# 立方解析
digists = [value ** 3 for value in range(1, 11)]
for x in digists:
	print(x)